package com.fs.system.teacher.mapper;

import com.fs.system.student.domain.ApplicationRecord;
import com.fs.system.teacher.domain.First;
import com.fs.system.teacher.domain.Teacher;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;


public interface TeacherMapper {
    void updateTeacher(Teacher teacher);

    Teacher selectById(Long teaId);

    Teacher selectByUsername(String username);

    void insertOne(Teacher teacher);

    void updateTeacherByAdmin(Teacher teacher);

    void deleteTeacher(@Param("teaId") Long teaId, @Param("updateBy") String updateBy, @Param("updateTime")LocalDateTime updateTime );

    List<Teacher> selectAll(Teacher teacher);

    List<ApplicationRecord> selectFirst(ApplicationRecord applicationRecord);

    void firstUpdate(ApplicationRecord applicationRecord);

    List<ApplicationRecord> selectFirst2(ApplicationRecord applicationRecord);

    void firstRecord(First first);

    List<First> selectRecord(First first);

    ApplicationRecord getRecordById(Long id );
}
